//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Core.Formatting
{
    class RepeatToken : ClauseFormatToken
    {
        public RepeatToken(char c)
        {
            Value = c;
        }
        internal readonly char Value;
        internal override void Apply(FormatClause result)
        {
            result.AddRepeatFormatItem(Value);
        }

        internal override string Code
        {
            get { return Value.ToString(); }
        }
    }
}